]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Revert "loginDialog: Don't arbitrarily pick a random session for the user"
authorRay Strode <rstrode@redhat.com>
Wed, 18 Mar 2015 16:44:19 +0000 (12:44 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 18 Mar 2015 16:44:37 +0000 (12:44 -0400)
This reverts commit 6d40cb98e7e7a24f66662f0a06ecf8e93ed5dea2.

https://bugzilla.gnome.org/show_bug.cgi?id=740142

js/gdm/loginDialog.js

index aaf55f3810e358c3e4d05090bf17ffffce4f9ae7..8da1b55017c469337ea20bd2ccb03e51af7d6f1c 100644 (file)
@@ -354,6 +354,9 @@ const SessionMenuButton = new Lang.Class({
             this._menu.addMenuItem(item);
             this._items[id] = item;
 
+            if (!this._activeSessionId)
+                this.setActiveSession(id);
+
             item.connect('activate', Lang.bind(this, function() {
                 this.setActiveSession(id);
             }));